home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / disk / mt100.zip / MT.TXT < prev    next >
Text File  |  1996-06-04  |  7KB  |  152 lines

  1.                           MT - Move To drive/directory
  2.  
  3.                            Copyright Jason Hood 1996
  4.  
  5.                                     Freeware
  6.  
  7.  
  8.                                   Description
  9.  
  10.  mt is a complete CD replacement.  It allows for the use of slash ("/") as well
  11.  as backslash ("\") in directory  names.  The dot notation has been extended so
  12.  "grandparent"  and  "great-grandparent",  etc.,  can  be  specified.   Partial
  13.  directory  names are supported.  The two previous  directories are remembered.
  14.  And of course, the drive can be changed.
  15.  
  16.  
  17.                                   Requirements
  18.  
  19.         DOS 3.0+
  20.         286+ (but could be recompiled/reassembled for less)
  21.  
  22.  
  23.                                   Installation
  24.  
  25.  Place mt.com in your path.  It doesn't really matter where the other files go.
  26.  Add these two statements to your autoexec.bat:
  27.  
  28.         SET MTMEM=####
  29.         [path]mtmem.com [d:/path] [;prev] [;;bprev]
  30.  
  31.  where: the environment variable will be set to the resident memory segment;
  32.         [path] is the path to mtmem.com;
  33.         [d:/path] is the drive and path to place the directory structure file;
  34.         [;prev] & [;;bprev] are the initial previous directories.
  35.  
  36.  If [d:/path] is not specified,  it will default to the same path as mtmem.com.
  37.  If the previous  directories  are not  specified  they will be set to nothing.
  38.  Memory will be allocated high (if available),  using best fit.  (The memory is
  39.  used to store the path and previous directories.)
  40.  
  41.  The next step is to setup the directory structure file for the partial names:
  42.  
  43.         mt @drives
  44.  
  45.  where  drives is the  list of drives  you wish to scan.   Note that the drives
  46.  will be scanned in the order  specified and I make no test for invalid drives.
  47.  I've allowed for 1500 directories per drive.   (It can hold about 1512 with an
  48.  average length of about 20.)   If you have more than 1500 directories, it will
  49.  probably crash, 'coz I've not tested for that either.
  50.  
  51.  
  52.                                      Usage
  53.  
  54.  "mt ?"  or  "mt <any-character-of-your-choice>?"  will  display a  help screen
  55.  (at least, I hope it helps).
  56.  
  57.  "mt @cd",  for example,  will scan drives C:  and D:.   "mt @" will update the
  58.  file for drives  previously scanned  (by totally rescanning the drives).   The
  59.  file's path can be changed via mtmem.com.
  60.  
  61.  "mt ..."  is equivalent to  "mt ../.."  - ie.  it will move you to the "grand-
  62.  parent" directory.  Any number of dots can be specified, but of course it will
  63.  fail if you try to move too far back.  Note that the extra dots will only work
  64.  at the start of the path  -  if specified in the  middle you will get an error
  65.  (but it's a silly thing to do anyway).
  66.  
  67.  "mt;" (or "mt ;" if you like typing spaces) will move you to the directory you
  68.  just moved from.  Similarly  "mt;;"  goes  to  the  one  before  the  previous
  69.  directory.  I don't think I explained that too well, so here's an example:
  70.  
  71.         C:\>mt utils
  72.         C:\UTILS>mt /games
  73.         C:\GAMES>mt;            move to the directory you just moved from
  74.         C:\UTILS>mt;;           move to the directory you moved from before
  75.         C:\>                      the one you just moved from
  76.  
  77.  I think I could  still phrase  it better,  but you should  get the idea.   The
  78.  intelligence of the previous  directories is not too good,  so if you do some-
  79.  thing like "mt ." it will set the previous directory to the current directory.
  80.  The only test I make is if the previous is the current ('coz of Windows always
  81.  going to its own directory).  mtmem.com can also set the previous directories.
  82.  
  83.  "mt d:path" is the same as CD, but it will change drive as well.  You can also
  84.  use slashes.  "mt d:\games\dos"  is the same as "mt d:/games/dos".  It is also
  85.  possible to use a star ("*") for the last directory name.   It will select the
  86.  first name that matches  (in the file table,  not alphabetically).   So if the
  87.  above games directory has dos and windows as subdirectories,  and dos is first
  88.  in the file table,  then "mt d:/games/*" will get you there.   Similarly,  "mt
  89.  d:/games/w*" will move you to the windows subdirectory.
  90.  
  91.  "mt name1 name2 ..."  (that's an ellipsis,  not grandparent) is roughly equiv-
  92.  alent to  "mt name1*/name2*/..."  - ie.  it looks for a  directory that starts
  93.  with name1, has a subdirectory that starts with name2, etc.  Note that if only
  94.  one name is specified it looks for a subdirectory before it starts the search.
  95.  
  96.  Searches always begin from the root,  in drive order  (when the structure file
  97.  was created).   To specify another drive:   "mt d:name1 name2 ..."  where d is
  98.  the drive you want.   The first match found will be the one selected.  If it's
  99.  not the one you want,  you will need to narrow the search  (by specifying more
  100.  characters).   (I find it easier to type  than to select from  a damn annoying
  101.  pop-up window.)   Directories are stored alphabetically, with precedence given
  102.  to paths closer to the root.   So given directories /games and /windows/games,
  103.  "mt g"  will find /games,  since it closer to the root.   But with directories
  104.  /windows and /windoze,  "mt w" will find /windows, since "w" comes before "z".
  105.  
  106.  
  107.                              Possible Enhancements
  108.  
  109.  These are things I will do if I receive any mail requesting them:
  110.  
  111.         more previous directories, but probably no more than 12 (; ;; ;[0-9]);
  112.         an add/remove directory (tree) command, rather than rescanning;
  113.         minimum characters to uniquely identify current directory;
  114.         pop-up window, but only if it's desperate (I WANT A POP-UP WINDOW!!!)
  115.           and there's more than ten requests;
  116.         Win95 long-filename support - I have the interrupts (thanks to Ralf
  117.           Brown's list) but not Win95, so if there's any volunteers...;
  118.         whatever else people ask for.
  119.  
  120.  
  121.                                  Redistribution
  122.  
  123.  If you're  just giving  it your mate,  only the two  com files  are necessary.
  124.  However, if you plan to upload it to a BBS or FTP site (or whatever),  I'd ask
  125.  that you upload the original zip-file  (or whatever archiver you prefer).   If
  126.  you modify the source, let me know and I'll redistribute an "official" version
  127.  (after all,  I still hold copyright),  but I have no objections if you distri-
  128.  bute both my original code and your modification (but please, do let me know).
  129.  
  130.  
  131.                                     Address
  132.  
  133.  e-mail:        hoodj@topaz.cqu.edu.au
  134.  
  135.  snail mail:    Jason Hood
  136.                 11 Buckle Street
  137.                 North Rockhampton
  138.                 Queensland, 4701
  139.                 Australia.
  140.  
  141.  
  142.                                     Finally
  143.  
  144.  This is not the best  document in the world,  but I hope it suffices.   Please
  145.  let me know how it can be improved.
  146.  
  147.  This program is copyrighted Freeware.   Feel free to give it to all and sundry
  148.  (under the conditions mentioned in "Redistribution").   But if you sell it,  I
  149.  curse you to everlasting bankruptcy.
  150.  
  151.  Jason Hood, 4 June, 1996.
  152.